<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>习惯管理 - 习惯掌控</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }
        body {
            background-color: #f6f8fa;
            color: #333;
        }
        .container {
            max-width: 414px;
            margin: 0 auto;
            background-color: white;
            min-height: 100vh;
            position: relative;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .header {
            padding: 50px 20px 20px;
            background-color: #4CAF50;
            color: white;
        }
        .title {
            font-size: 24px;
            font-weight: bold;
        }
        .tabs {
            display: flex;
            padding: 0 15px;
            background-color: #4CAF50;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .tab {
            padding: 15px;
            color: rgba(255,255,255,0.8);
            font-weight: 500;
            position: relative;
            cursor: pointer;
        }
        .tab.active {
            color: white;
        }
        .tab.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background-color: white;
            border-radius: 3px 3px 0 0;
        }
        .search-bar {
            padding: 15px;
            background-color: white;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #eee;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .search-input {
            flex: 1;
            background-color: #f2f2f2;
            border: none;
            border-radius: 20px;
            padding: 10px 15px;
            font-size: 15px;
            outline: none;
        }
        .search-icon {
            color: #999;
            padding: 0 15px 0 5px;
        }
        .habits-container {
            padding: 15px;
        }
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .section-title-text {
            display: flex;
            align-items: center;
        }
        .section-count {
            background-color: #4CAF50;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            margin-left: 8px;
        }
        .section-action {
            color: #4CAF50;
            font-size: 14px;
            font-weight: normal;
        }
        .habit-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 30px;
        }
        .habit-item {
            padding: 15px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            position: relative;
        }
        .habit-icon {
            width: 45px;
            height: 45px;
            background-color: #e3f2fd;
            color: #4CAF50;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-right: 15px;
        }
        .habit-info {
            flex: 1;
        }
        .habit-title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 16px;
        }
        .habit-schedule {
            font-size: 13px;
            color: #666;
            display: flex;
            align-items: center;
        }
        .schedule-dot {
            width: 8px;
            height: 8px;
            background-color: #4CAF50;
            border-radius: 50%;
            margin-right: 5px;
        }
        .habit-streak {
            font-size: 12px;
            background-color: #f1f8e9;
            color: #4CAF50;
            padding: 3px 8px;
            border-radius: 10px;
            margin-top: 5px;
            display: inline-block;
        }
        .habit-actions {
            color: #999;
            font-size: 20px;
        }
        .week-days {
            display: flex;
            gap: 5px;
            margin-top: 5px;
        }
        .week-day {
            width: 20px;
            height: 20px;
            font-size: 10px;
            color: #999;
            border: 1px solid #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .week-day.active {
            background-color: #4CAF50;
            color: white;
            border-color: #4CAF50;
        }
        .habit-inactive {
            opacity: 0.5;
        }
        .divider {
            height: 1px;
            background-color: #eee;
            margin: 15px 0;
        }
        .navigation {
            position: fixed;
            bottom: 0;
            width: 100%;
            max-width: 414px;
            background-color: white;
            display: flex;
            justify-content: space-around;
            padding: 15px 0;
            border-top: 1px solid #e0e0e0;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #888;
        }
        .nav-item.active {
            color: #4CAF50;
        }
        .nav-icon {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .add-button {
            position: absolute;
            bottom: 70px;
            right: 20px;
            width: 56px;
            height: 56px;
            background-color: #4CAF50;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .empty-space {
            height: 80px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="title">我的习惯</div>
        </div>
        
        <div class="tabs">
            <div class="tab active">全部</div>
            <div class="tab">健康</div>
            <div class="tab">学习</div>
            <div class="tab">工作</div>
            <div class="tab">生活</div>
        </div>
        
        <div class="search-bar">
            <input type="text" placeholder="搜索习惯" class="search-input">
            <div class="search-icon">
                <i class="fas fa-search"></i>
            </div>
        </div>
        
        <div class="habits-container">
            <div class="section-title">
                <div class="section-title-text">
                    活跃习惯 <div class="section-count">8</div>
                </div>
                <div class="section-action">管理</div>
            </div>
            
            <div class="habit-list">
                <div class="habit-item">
                    <div class="habit-icon">
                        <i class="fas fa-running"></i>
                    </div>
                    <div class="habit-info">
                        <div class="habit-title">晨跑5公里</div>
                        <div class="habit-schedule">
                            <div class="schedule-dot"></div>
                            每天 6:00
                        </div>
                        <div class="week-days">
                            <div class="week-day active">一</div>
                            <div class="week-day active">二</div>
                            <div class="week-day active">三</div>
                            <div class="week-day active">四</div>
                            <div class="week-day active">五</div>
                            <div class="week-day">六</div>
                            <div class="week-day">日</div>
                        </div>
                        <div class="habit-streak">
                            <i class="fas fa-fire"></i> 连续31天
                        </div>
                    </div>
                    <div class="habit-actions">
                        <i class="fas fa-ellipsis-vertical"></i>
                    </div>
                </div>
                
                <div class="habit-item">
                    <div class="habit-icon">
                        <i class="fas fa-book"></i>
                    </div>
                    <div class="habit-info">
                        <div class="habit-title">阅读30分钟</div>
                        <div class="habit-schedule">
                            <div class="schedule-dot"></div>
                            每天 8:00
                        </div>
                        <div class="week-days">
                            <div class="week-day active">一</div>
                            <div class="week-day active">二</div>
                            <div class="week-day active">三</div>
                            <div class="week-day active">四</div>
                            <div class="week-day active">五</div>
                            <div class="week-day active">六</div>
                            <div class="week-day active">日</div>
                        </div>
                        <div class="habit-streak">
                            <i class="fas fa-fire"></i> 连续15天
                        </div>
                    </div>
                    <div class="habit-actions">
                        <i class="fas fa-ellipsis-vertical"></i>
                    </div>
                </div>
                
                <div class="habit-item">
                    <div class="habit-icon">
                        <i class="fas fa-water"></i>
                    </div>
                    <div class="habit-info">
                        <div class="habit-title">喝水2000ml</div>
                        <div class="habit-schedule">
                            <div class="schedule-dot"></div>
                            全天
                        </div>
                        <div class="week-days">
                            <div class="week-day active">一</div>
                            <div class="week-day active">二</div>
                            <div class="week-day active">三</div>
                            <div class="week-day active">四</div>
                            <div class="week-day active">五</div>
                            <div class="week-day active">六</div>
                            <div class="week-day active">日</div>
                        </div>
                        <div class="habit-streak">
                            <i class="fas fa-fire"></i> 连续31天
                        </div>
                    </div>
                    <div class="habit-actions">
                        <i class="fas fa-ellipsis-vertical"></i>
                    </div>
                </div>
                
                <div class="habit-item">
                    <div class="habit-icon">
                        <i class="fas fa-apple-alt"></i>
                    </div>
                    <div class="habit-info">
                        <div class="habit-title">摄入蔬果5份</div>
                        <div class="habit-schedule">
                            <div class="schedule-dot"></div>
                            全天
                        </div>
                        <div class="week-days">
                            <div class="week-day active">一</div>
                            <div class="week-day active">二</div>
                            <div class="week-day active">三</div>
                            <div class="week-day active">四</div>
                            <div class="week-day active">五</div>
                            <div class="week-day active">六</div>
                            <div class="week-day active">日</div>
                        </div>
                        <div class="habit-streak">
                            <i class="fas fa-fire"></i> 连续31天
                        </div>
                    </div>
                    <div class="habit-actions">
                        <i class="fas fa-ellipsis-vertical"></i>
                    </div>
                </div>
                
                <div class="habit-item">
                    <div class="habit-icon">
                        <i class="fas fa-moon"></i>
                    </div>
                    <div class="habit-info">
                        <div class="habit-title">22:30前睡觉</div>
                        <div class="habit-schedule">
                            <div class="schedule-dot"></div>
                            22:30
                        </div>
                        <div class="week-days">
                            <div class="week-day active">一</div>
                            <div class="week-day active">二</div>
                            <div class="week-day active">三</div>
                            <div class="week-day active">四</div>
                            <div class="week-day active">五</div>
                            <div class="week-day active">六</div>
                            <div class="week-day active">日</div>
                        </div>
                        <div class="habit-streak">
                            <i class="fas fa-fire"></i> 连续31天
                        </div>
                    </div>
                    <div class="habit-actions">
                        <i class="fas fa-ellipsis-vertical"></i>
                    </div>
                </div>
            </div>
            
            <div class="quote">
                <div class="quote-text">"习惯的力量远远超过我们的想象。好习惯给我们带来成功，坏习惯引我们走向失败。"</div>
                <div class="quote-author">—— 詹姆斯·克利尔《掌控习惯》</div>
            </div>
        </div>
        
        <div class="empty-space"></div>
        
        <a href="#" class="add-button">
            <i class="fas fa-plus"></i>
        </a>
        
        <div class="navigation">
            <div class="nav-item active">
                <div class="nav-icon"><i class="fas fa-home"></i></div>
                <div>首页</div>
            </div>
            <div class="nav-item">
                <div class="nav-icon"><i class="fas fa-list-check"></i></div>
                <div>习惯</div>
            </div>
            <div class="nav-item">
                <div class="nav-icon"><i class="fas fa-chart-line"></i></div>
                <div>统计</div>
            </div>
            <div class="nav-item">
                <div class="nav-icon"><i class="fas fa-users"></i></div>
                <div>社区</div>
            </div>
            <div class="nav-item">
                <div class="nav-icon"><i class="fas fa-user"></i></div>
                <div>我的</div>
            </div>
        </div>
    </div>
</body>
</html>
